﻿using OT.Data;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace OT.Areas.Instructor.Models
{
    public class ChangePassword
    {


        [Required, DisplayName("Password")]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        [Required, DisplayName("New Password")]
        [StringLength(20, ErrorMessage = "minimum 6 character characters long.", MinimumLength = 6)]
        [DataType(DataType.Password)]
        public string NewPassword { get; set; }


        [Required]
        [DataType(DataType.Password)]
        [StringLength(20, ErrorMessage = "minimum 6 character characters long.", MinimumLength = 6)]
        [Display(Name = "Confirm password")]
        [Compare("NewPassword", ErrorMessage = "The password and confirmation password do not match.")]
        public string ConfirmPassword { get; set; }
    }
}